package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        double price=6000.0;
        if(price>=2000) {
            price*=0.5;
        }else if (price>=1000){
            price*=0.6;
        }
        else if (price>=500){
            price*=0.7;
        }
        else{price*=0.99;}
        System.out.println("消费金额"+price);

        int score=67;
        if(score>=90){
            System.out.println("优秀成绩："+score);
        }
        else if(score>=80){
            System.out.println("良好成绩："+score);
        }
        else if (score>=60) {
            System.out.println("及格成绩："+score);
        }
        else {
            System.out.println("不及格成绩："+score);
        }

        int height=-25;
        if(height>=190){
            System.out.println("huge man's height："+height);
        } else if (height>=180) {
            System.out.println("asian's height");
        }
        else {
            System.out.println("dwarf's height:"+height);
        }
    }
}
